# import json
# import re
#
# import lxml
# import scrapy
# from lxml import etree
# from spidertools.utils.time_utils import get_current_date
#
# from commonresources.spider_items.hebei.items import HeBeiShengZhaoBiaoTouBiaoFuWuPingTaiItem
# from commonresources.spiders.basespider import BaseSpider
#
#
# class QiChaChaSpider(scrapy.Spider):
#     """
#         QiChaCha    https://www.qcc.com
#     """
#     name = 'QiChaCha'
#     # start_urls = ['http://www.hebeieb.com/tender/xxgk/list.do#']
#
#     def __init__(self, full_dose=False):
#         self.full_dose = full_dose
#         super().__init__()
#
#     def fake_data(self, page=0):
#         return {
#             "page": f"{page}",
#             "TimeStr": f"2000-01-01,{get_current_date()}",
#             "allDq": "reset2",
#             "allHy": "reset1",
#             "AllPtName": "",
#             "KeyStr": "",
#             "KeyType": "ggname",
#         }
#
#     def parse(self, response):
#         pass
#
#     def fake_headers(self, jsessionid):
#         return {
#             "Accept": "*/*",
#             "Accept-Encoding": "gzip, deflate",
#             "Accept-Language": "zh-CN,zh;q=0.9",
#             "Connection": "keep-alive",
#             # "Content-Length": "81",
#             "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
#             # "Cookie": f"{jsessionid} __51cke__=; __tins__19687679=%7B%22sid%22%3A%201605163970640%2C%20%22vd%22%3A%202%2C%20%22expires%22%3A%201605165785701%7D; __51laig__=2",
#             "Host": "www.hebeieb.com",
#             "Origin": "http://www.hebeieb.com",
#             # "Referer": "http://www.hebeieb.com/tender/xxgk/list.do?selectype=zbgg",
#             "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
#             "X-Requested-With": "XMLHttpRequest",
#         }
#
#
#     def start_requests(self):
#         pass
#
#     def handle_response(self, response):
#         pass